<?php

class Application_Model_DbTable_Applog extends Zend_Db_Table_Abstract
{

    protected $_name = 'app_log';
    public function insertLog($file_name,$exception,$message,$classname){
        
        
        $timeStamp = mktime(date('H'),date('i'), date('s')
                            ,date('m'),date('d'),date('y'));
        $dob_disp1=strftime('%Y-%m-%d %H:%M:%S',$timeStamp);
        
        
        $data=array('file_name'=>$file_name,
                    'exception'=>$exception,
                    'exception_msg'=>$message,
                    'exception_date'=>$dob_disp1,
                    'classname'=>$classname
                    );
    
        $this->insert($data);
    }

}

